package com.api.syh56.shengyunhui.service;

import com.api.syh56.shengyunhui.entity.CouponDet;
import com.api.syh56.shengyunhui.entity.vo.CouponVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

public interface CouponDetService extends IService<CouponDet> {

    void insert();

    int getCouponDetNum(Long id);

//    void updateStatus(Integer code);

    Page<CouponVO> getCoupon(Long uid, Integer pageNum, Integer pageSize, Short couponStatus);

    BigDecimal getPayAmount(Long qid, Long couponId);

    void restore(Long qid);

    List<CouponDet> updateByUid(Long id);
}
